package com.spvs.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spvs.system.mapper.FileViewMapper;
import com.spvs.system.domain.FileView;
import com.spvs.system.service.IFileViewService;

/**
 * 文件查看Service业务层处理
 *
 * @author supervision
 * @date 2024-12-12
 */
@Service
public class FileViewServiceImpl implements IFileViewService
{
    @Autowired
    private FileViewMapper fileViewMapper;

    /**
     * 查询文件查看
     *
     * @param viewId 文件查看主键
     * @return 文件查看
     */
    @Override
    public FileView selectFileViewByViewId(Long viewId)
    {
        return fileViewMapper.selectFileViewByViewId(viewId);
    }

    /**
     * 查询文件查看列表
     *
     * @param fileView 文件查看
     * @return 文件查看
     */
    @Override
    public List<FileView> selectFileViewList(FileView fileView)
    {
        return fileViewMapper.selectFileViewList(fileView);
    }

    /**
     * 新增文件查看
     *
     * @param fileView 文件查看
     * @return 结果
     */
    @Override
    public int insertFileView(FileView fileView)
    {
        return fileViewMapper.insertFileView(fileView);
    }

    /**
     * 修改文件查看
     *
     * @param fileView 文件查看
     * @return 结果
     */
    @Override
    public int updateFileView(FileView fileView)
    {
        return fileViewMapper.updateFileView(fileView);
    }

    /**
     * 批量删除文件查看
     *
     * @param viewIds 需要删除的文件查看主键
     * @return 结果
     */
    @Override
    public int deleteFileViewByViewIds(Long[] viewIds)
    {
        return fileViewMapper.deleteFileViewByViewIds(viewIds);
    }

    /**
     * 删除文件查看信息
     *
     * @param viewId 文件查看主键
     * @return 结果
     */
    @Override
    public int deleteFileViewByViewId(Long viewId)
    {
        return fileViewMapper.deleteFileViewByViewId(viewId);
    }
}
